1 /*
2 * File: roll_ap.h
3 *
4 * Code generated for Simulink model 'roll_ap'.
5 *
6 * Model version : 1.164
7 * Simulink Coder version : 8.5 (R2013b) 08-Aug-2013
8 * C/C++ source code generated on : Mon Feb 03 08:13:50 2014
9 *
10 * Target selection: ert.tlc
11 * Embedded hardware selection: 32-bit Embedded Processor
12 * Code generation objectives: Unspecified
13 * Validation result: Not run
14 */
15
16 #ifndef RTW_HEADER_roll_ap_h_
17 #define RTW_HEADER_roll_ap_h_
18 #ifndef roll_ap_COMMON_INCLUDES_
19 # define roll_ap_COMMON_INCLUDES_
20 #include <math.h>
21 #include <string.h>
22 #include "rtwtypes.h"
23 #include "model_reference_types.h"
24 #endif /* roll_ap_COMMON_INCLUDES_ */
25
26 #include "roll_ap_types.h"
27
28 /* Child system includes */
29 #include "attitude_controller.h"
30 #include "Heading_Mode.h"
31
32 /* Block signals for model 'roll_ap' */
33 typedef struct {
34 real_T phiCmd; /* '<Root>/Mode switch' (Output 1) */
35 } rtB_roll_ap;
36
37 /* Block states (auto storage) for model 'roll_ap' */
38 typedef struct {
39 real_T FixPtUnitDelay1_DSTATE; /* '<S3>/FixPt Unit Delay1' (DWork 1) */
40 rtMdlrefDWork_Heading_Mode HeadingMode_DWORK1;/* '<Root>/Heading Mode' (DWork 1) */
41 rtMdlrefDWork_attitude_controller BasicRollMode_DWORK1;/* '<Root>/Basic Roll Mode' (DWork 1) */
42 } rtDW_roll_ap;
43
44 typedef struct {
45 rtB_roll_ap rtb;
46 rtDW_roll_ap rtdw;
47 } rtMdlrefDWork_roll_ap;
48
49 /* Model reference registration function */
50 extern void roll_ap_initialize(rtB_roll_ap *localB, rtDW_roll_ap *localDW);
51 extern void roll_ap(const real_T *rtu_Phi, const real_T *rtu_Psi, const real_T
52 *rtu_p, const real_T *rtu_TAS, const boolean_T *rtu_APEng,
53 const boolean_T *rtu_HDGMode, const real_T *rtu_HDGRef,
54 const real_T *rtu_TurnKnob, real_T *rty_AilCmd, rtB_roll_ap *
55 localB, rtDW_roll_ap *localDW, real_T rtp_dispGain, real_T
56 rtp_intGain, real_T rtp_rateGain, real_T rtp_hdgGain);
57
58 /*-
59 * The generated code includes comments that allow you to trace directly
60 * back to the appropriate location in the model. The basic format
61 * is <system>/block_name, where system is the system number (uniquely
62 * assigned by Simulink) and block_name is the name of the block.
63 *
64 * Use the MATLAB hilite_system command to trace the generated code back
65 * to the model. For example,
66 *
67 * hilite_system('<S3>') - opens system 3
68 * hilite_system('<S3>/Kp') - opens and selects block Kp which resides in S3
69 *
70 * Here is the system hierarchy for this model
71 *
72 * '<Root>' : 'roll_ap'
73 * '<S1>' : 'roll_ap/Model Info'
74 * '<S2>' : 'roll_ap/Roll Reference'
75 * '<S3>' : 'roll_ap/Roll Reference/Latch Phi'
76 */
77
78 /*-
79 * Requirements for '<Root>': roll_ap
80 */
81 #endif /* RTW_HEADER_roll_ap_h_ */
82
83 /*
84 * File trailer for generated code.
85 *
86 * [EOF]
87 */
88
|